package com.ml.mall.service.company.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ml.mall.entity.company.SysCompanyRegistAcc;
import com.ml.mall.mapper.company.SysCompanyRegistAccMapper;
import com.ml.mall.service.company.SysCompanyRegistAccService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
* <p>
    *  服务实现类
    * </p>
*
* @author kyyang
* Created 2021-06-21
*/
@Service
public class SysCompanyRegistAccServiceImpl extends ServiceImpl<SysCompanyRegistAccMapper, SysCompanyRegistAcc> implements SysCompanyRegistAccService {

    @Autowired
    private  SysCompanyRegistAccMapper  SysCompanyRegistAccMapper;


    @Override
    public SysCompanyRegistAcc queryByCompanyId(Long companyId) {
        LambdaQueryWrapper<SysCompanyRegistAcc> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SysCompanyRegistAcc::getCompanyId, companyId);
        return getOne(queryWrapper);
    }
}
